<?php
$this->title = "Page Translation Tracking |";
$this->headTitle($this->title);
?>
<form method="post" action="<?php echo $this->url(array('controller' => 'Pagetranslationtracking', 'action' => 'index')); ?>">
	<p id="adminlist-topcontrol">
		<a class="AddNewHoOrHBLink" href="<?php echo $this->url(array('controller'=>'Pagetranslationtracking', 'action'=>'export'));?>">Export Tracking</a>
	</p>
	<table class="adminlist" border="1px">
			<thead>
				<?php
					// Display pagination control
					echo $this->paginationControl($this->paginator, 'Sliding', '/partials/paginator.phtml', array("colspan" => 4));
				?>			
				<tr>				
					<th>
						Page/URL
					</th>
					<th>
						Source Language
					</th>
					<th>
						Target Language
					</th>
					<th>
						Number of Visits	
					</th>				
				</tr>
			</thead>
			<tfoot>
				<?php
					// Display pagination control
					echo $this->paginationControl($this->paginator, 'Sliding', '/partials/paginator.phtml', array("colspan" => 4));
				?>			
			</tfoot>
			<tbody>
				<?php 
					if ( 0 == count($this->resultSet)){
						echo $this->partial('/partials/paginator_nodata.phtml', array("colspan" => 4));
					}				
				?>
				<?php foreach($this->resultSet as $pagetranslationtracking ):?>
				<tr>	
					<td class="center">
						<?php echo $this->escape($pagetranslationtracking->getPageUrl());?>
					 </td>
					<td class="center">
						<?php echo $this->escape($pagetranslationtracking->getTranslationSourceLanguage());?>				
					</td>
					<td class="center">
						<?php echo $this->escape($pagetranslationtracking->getTranslationSourceLanguage());?>				
					</td>		
					<td class="center">
						<?php echo $this->escape($pagetranslationtracking->CountTranslation);?>				
					</td>										
				</tr>		
				<?php endforeach;?>
			</tbody>
	</table>
</form>	